package com.xing.binbackend.pattern.adapter24.operation;

import java.util.Collections;
import java.util.Map;

// AWS监控SDK
class AwsCloudSDK {
    public Map<String, Object> getMetricStatistics(String namespace,
                                                   String metricName,
                                                   String instanceId) {
        // 实际调用AWS API
//        return Map.of("value", 0.75, "timestamp", System.currentTimeMillis());
        return Collections.emptyMap();
    }

    public void putMetricAlarm(String alarmName,
                               String metricName,
                               double threshold) {
        System.out.println("AWS创建告警: " + alarmName);
    }
}
